package com.gitee.cui.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.gitee.cui.springcloud.entities.CommonResult;
import com.gitee.cui.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * 用户自定义异常处理类
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022-03-19 09:28
 **/
public class CustomBlockHandler {

	public static CommonResult handlerException(BlockException e) {
		return new CommonResult(4444, "按用户自定义限流异常 global ----> handlerException");
	}

	public static CommonResult handlerException2(BlockException e) {
		return new CommonResult(4444, "按用户自定义限流异常 global ----> handlerException2");
	}
}
